#include "Edge.hpp"

Edge::Edge(Node& n1, Node& n2)
  : std::pair< boost::reference_wrapper< const Node >, boost::reference_wrapper< const Node > >(boost::ref((const Node &)n1), boost::ref((const Node &)n2))
{
  n1.edges.push_back(boost::ref((const Edge&)*this));
  n2.edges.push_back(boost::ref((const Edge&)*this));
}

bool Edge::getIsDirected() const
{
  return this->isDirected;
}
